package com.fuyao.cloud.personnel.api.feign;

import com.fuyao.cloud.common.core.constant.SecurityConstants;
import com.fuyao.cloud.common.core.constant.ServiceNameConstants;
import com.fuyao.cloud.common.core.util.R;
import com.fuyao.cloud.message.vo.MesRuleFormVO;
import com.fuyao.cloud.message.vo.MessageRuleVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;

@FeignClient(contextId = "remoteeContractInfoService", value = ServiceNameConstants.PERSONNEL_SERVICE)
public interface RemoteContractInfoService {

    @PostMapping("/contractinfo/findAllUserId")
    R<List<MesRuleFormVO>> findAllUserId(@RequestBody List<MessageRuleVO> messageRuleVOs,@RequestHeader(SecurityConstants.FROM) String from);
}
